<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_bidinfo.*" %>
<%@page import="java.util.*" %>
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<html>
  <head>
    
    <title>竞标管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="js_commen.js"></script>
	
</head>

<body>

  <% 
	String re_trade_id = randomId.GenTradeId();
	String oper_user_id="";

if(session.getAttribute("session_user_id")!=null){
	oper_user_id  = session.getAttribute("session_user_id").toString();
}         
	
  	String trade_id="";
  	if(request.getParameter("trade_id")!=null) trade_id = request.getParameter("trade_id");
  	Ti_bidinfoInfo ti_bidinfoInfo = new Ti_bidinfoInfo();
  	List list = ti_bidinfoInfo.getListByPk(trade_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String info_id="",title="",price="",bid_date="",content="",bid_name="",bid_compname="",bid_email="",bid_phone="",rsrv_str1="",rsrv_str2="",rsrv_str3="",cust_id="",in_date="",user_id="",remark="";
	int bid_state=0;
  	if(map.get("info_id")!=null) info_id = map.get("info_id").toString();
  	if(map.get("title")!=null) title = map.get("title").toString();
  	if(map.get("price")!=null) price = map.get("price").toString();
  	if(map.get("bid_date")!=null) bid_date = map.get("bid_date").toString();
  	if(map.get("content")!=null) content = map.get("content").toString();
  	if(map.get("bid_state")!=null) bid_state = Integer.valueOf(map.get("bid_state").toString());
  	if(map.get("bid_name")!=null) bid_name = map.get("bid_name").toString();
  	if(map.get("bid_compname")!=null) bid_compname = map.get("bid_compname").toString();
  	if(map.get("bid_email")!=null) bid_email = map.get("bid_email").toString();
  	if(map.get("bid_phone")!=null) bid_phone = map.get("bid_phone").toString();
  	if(map.get("rsrv_str1")!=null) rsrv_str1 = map.get("rsrv_str1").toString();
  	if(map.get("rsrv_str2")!=null) rsrv_str2 = map.get("rsrv_str2").toString();
  	if(map.get("rsrv_str3")!=null) rsrv_str3 = map.get("rsrv_str3").toString();
  	if(map.get("cust_id")!=null) cust_id = map.get("cust_id").toString();
  	if(map.get("in_date")!=null) in_date = map.get("in_date").toString();
  	if(map.get("user_id")!=null) user_id = map.get("user_id").toString();
  	if(map.get("remark")!=null) remark = map.get("remark").toString();

  %>
	
	<h1>竞标管理</h1>
	
	<!--
	<table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>-----------------</h4>
		  <span>1----------------。</span><br/>
		  <span>2----------------。</span>
		  </td>
        </tr>
      </table>
      <br/>
	  -->
	
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
	<tr>
		<td  colspan="4">
	   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;<span style="font-size:14px;font-weight:bold;">竞标信息</span>			
		</td>
	</tr>		
		<tr>
			<td align="right" width="10%">
				竞标标题:
			</td>
			<td colspan="3"><%=title %></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				竞价:
			</td>
			<td><%=price %></td>

			<td align="right" width="10%">
				任务期限:
			</td>
			<td><%=bid_date %></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				竞标内容:
			</td>
			
			<td colspan="3"><textarea name="bid_content" id="bid_content" ><%=content%></textarea></td>
			
			<script type="text/javascript" src="/program/plugins/ckeditor/ckeditor.js"></script>
			<script type="text/javascript">
				CKEDITOR.replace('bid_content');
			</script>		
		</tr>
		
		
		<tr>
			<td align="right" width="10%">
				竞标人名称:
			</td>
			<td><%=bid_name %></td>

			<td align="right" width="10%">
				竞标公司名称:
			</td>
			<td><%=bid_compname %></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				竞标人Email:
			</td>
			<td><%=bid_email %></td>

			<td align="right" width="10%">
				竞标人手机:
			</td>
			<td><%=bid_phone %></td>
		</tr>
		
	
	<tr>
		<td  colspan="4">
	   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;<span style="font-size:14px;font-weight:bold;">审核信息</span>			
		</td>
	</tr>
	
	<tr>
		<td align="right" width="20%">
			是否中标<font color="red">*</font>			
		</td>
		<td colspan="3">    
			<input type="radio" name="bid_state" id="state_code1" checked value="<%=bid_state+1%>" />是
			<input type="radio" name="bid_state" id="state_code2" value="0" />否
		</td>
	</tr>
	
	<tr>
		<td align="right" width="20%" >
		回复标题:
		</td>
		<td colspan="3"> 
			<input type="text" name = "title" id="title" />
		</td>
	</tr>		
	
	<tr>
		<td align="right" width="20%" >
		回复内容:
		</td>
		<td colspan="3"> 
			<textarea name="content" cols="100" rows="10"></textarea>
		</td>
	</tr>			
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="4366" />
	  			<input type="hidden" name="trade_id" value="<%=trade_id %>" />
				<input type="hidden" name="cust_id" value="<%=cust_id %>" />
				<input type="hidden" name="re_trade_id" value="<%=re_trade_id %>" />
				<input type="hidden" name="user_id" value="<%=oper_user_id %>" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" />&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
